package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.StockDailySinaMapper;
import com.ruoyi.quartz.domain.StockDailySina;
import com.ruoyi.quartz.service.IStockDailySinaService;

/**
 * 日交易Service业务层处理
 * 
 * @author czz
 * @date 2024-04-23
 */
@Service
public class StockDailySinaServiceImpl implements IStockDailySinaService 
{
    @Autowired
    private StockDailySinaMapper stockDailySinaMapper;

    /**
     * 查询日交易
     * 
     * @param id 日交易主键
     * @return 日交易
     */
    @Override
    public StockDailySina selectStockDailySinaById(Long id)
    {
        return stockDailySinaMapper.selectStockDailySinaById(id);
    }

    /**
     * 查询日交易列表
     * 
     * @param stockDailySina 日交易
     * @return 日交易
     */
    @Override
    public List<StockDailySina> selectStockDailySinaList(StockDailySina stockDailySina)
    {
        return stockDailySinaMapper.selectStockDailySinaList(stockDailySina);
    }

    /**
     * 新增日交易
     * 
     * @param stockDailySina 日交易
     * @return 结果
     */
    @Override
    public int insertStockDailySina(StockDailySina stockDailySina)
    {
        return stockDailySinaMapper.insertStockDailySina(stockDailySina);
    }

    /**
     * 修改日交易
     * 
     * @param stockDailySina 日交易
     * @return 结果
     */
    @Override
    public int updateStockDailySina(StockDailySina stockDailySina)
    {
        return stockDailySinaMapper.updateStockDailySina(stockDailySina);
    }

    /**
     * 批量删除日交易
     * 
     * @param ids 需要删除的日交易主键
     * @return 结果
     */
    @Override
    public int deleteStockDailySinaByIds(Long[] ids)
    {
        return stockDailySinaMapper.deleteStockDailySinaByIds(ids);
    }

    /**
     * 删除日交易信息
     * 
     * @param id 日交易主键
     * @return 结果
     */
    @Override
    public int deleteStockDailySinaById(Long id)
    {
        return stockDailySinaMapper.deleteStockDailySinaById(id);
    }
}
